package org.goj.management.mapper;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.goj.common.entity.management.News;

/**
 * <p>
 * 新闻表 Mapper 接口
 * </p>
 *
 * @author CK
 * @since 2020-12-02
 */
public interface NewsMapper extends BaseMapper<News> {

    /**
     * 分页查询公告
     *
     * @param page 分页
     * @param queryWrapper 条件构造器
     * @return Page<News>
     * @author CK
     * @date 2021/4/11 17:52
     */
    Page<News> pageNews(Page<News> page, @Param(Constants.WRAPPER) QueryWrapper<News> queryWrapper);
}
